package com.hb.software.salary.dao;

import com.hb.software.dao.BaseDao;
import com.hb.software.entity.salary.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


@Mapper
public interface SalaryDao  extends BaseDao<Salary,Long> {

    List<Salary> findByName(String name);

    List<Salary> findAll();

    Integer batchDelete(List<Long> ids);

    List<Salary> findDatetime(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<Salary> findDatetimeById(@Param("startTime") Date startTime, @Param("endTime") Date endTime,@Param("wid") Long wid);

    List<Salary> findById(Long wid);

}